using System;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Attributes;

namespace HengTong.Model.Db.SupplyChain.Material;

/// <summary>
/// 物料SKU属性关联表
/// 记录SKU与其属性值的多对多关系
/// </summary>
[Display(Name = "SKU属性关联", Description = "物料SKU与属性值的关联关系")]
[MiddleTable]
public class SysMaterialSkuAttributes : BasePoco
{
    /// <summary>
    /// 关联的属性值对象
    /// </summary>
    [Display(Name = "属性值", Description = "关联的物料属性值对象")]
    public SysMaterialAttributeValue Value { get; set; }
    
    /// <summary>
    /// 属性值ID
    /// </summary>
    [Display(Name = "属性值ID", Description = "关联的物料属性值唯一标识")]
    public Guid? ValueId { get; set; }
    
    /// <summary>
    /// 关联的SKU对象
    /// </summary>
    [Display(Name = "SKU", Description = "关联的物料SKU对象")]
    public SysMaterialSku Sku { get; set; }
    
    /// <summary>
    /// SKU ID
    /// </summary>
    [Display(Name = "SKU ID", Description = "关联的物料SKU唯一标识")]
    public Guid? SkuId { get; set; }
}